home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!news
- From: Michael Benrud <mbenrud@hti.net>
- Newsgroups: comp.lang.c++
- Subject: problems w/ relational operator ==
- Date: Tue, 16 Jan 1996 23:06:26 -0600
- Organization: Hudson - Trinity, Inc. (713) 333-9558
- Message-ID: <30FC83D2.7B6A@hti.net>
- NNTP-Posting-Host: dialnet46.hti.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (Win95; I)
-
- I am having some problems using the == operator. I am using BC 4.02.
- I have the following snipet of code:
-
- double i;
-
- if(i == 1.0)
- Xinc = Xinc * 10;
-
- The problem is that when i equals 1.0, the if statement never executes
- Xinc = Xinc * 10. Any ideas? Thanks in advance.
-